<%--
  Created by IntelliJ IDEA.
  User: LENOVO
  Date: 2024/9/13
  Time: 上午9:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>多个脚本段的相互访问</title>
</head>
<body>
<%
    int i;
%>
<%
    for (i = 0; i < 10; i++) {
%>
<h1>你好!张先生</h1>
<%
    }
%>
<%
    int sum = 0;
    for (int j = 0; j < 10; j++) {
        sum += j;
    }
    out.println("<h1>sum = " + sum+"</h1>");
%>
</body>
</html>
